<?php
/**
 * Created by PhpStorm.
 * User: spring
 * Date: 2018/5/24
 * Time: 16:35
 */

namespace App\Http\Controllers;

use App\Jobs;
use Illuminate\Support\Facades\Queue;

class ScriptController extends Controller
{

    public function index(){
        for($i = 0; $i<10; $i++){
            $job = (new Jobs\SendReminderEmail($i))->onQueue('writeFile');
            Queue::push($job);
        }
    }
}